home *** CD-ROM | disk | FTP | other *** search
/ Whiteline: Alpha / Whiteline Alpha.iso / progtool / c / gcc / gcc258s.zoo / gcc.info-19 < prev    next >
Encoding:
GNU Info File  |  1993-11-30  |  49.2 KB  |  1,074 lines

  1. This is Info file gcc.info, produced by Makeinfo-1.54 from the input
  2. file gcc.texi.
  3.  
  4.    This file documents the use and the internals of the GNU compiler.
  5.  
  6.    Published by the Free Software Foundation 675 Massachusetts Avenue
  7. Cambridge, MA 02139 USA
  8.  
  9.    Copyright (C) 1988, 1989, 1992, 1993 Free Software Foundation, Inc.
  10.  
  11.    Permission is granted to make and distribute verbatim copies of this
  12. manual provided the copyright notice and this permission notice are
  13. preserved on all copies.
  14.  
  15.    Permission is granted to copy and distribute modified versions of
  16. this manual under the conditions for verbatim copying, provided also
  17. that the sections entitled "GNU General Public License" and "Protect
  18. Your Freedom--Fight `Look And Feel'" are included exactly as in the
  19. original, and provided that the entire resulting derived work is
  20. distributed under the terms of a permission notice identical to this
  21. one.
  22.  
  23.    Permission is granted to copy and distribute translations of this
  24. manual into another language, under the above conditions for modified
  25. versions, except that the sections entitled "GNU General Public
  26. License" and "Protect Your Freedom--Fight `Look And Feel'", and this
  27. permission notice, may be included in translations approved by the Free
  28. Software Foundation instead of in the original English.
  29.  
  30. File: gcc.info,  Node: Scalar Return,  Next: Aggregate Return,  Prev: Register Arguments,  Up: Stack and Calling
  31.  
  32. How Scalar Function Values Are Returned
  33. ---------------------------------------
  34.  
  35.    This section discusses the macros that control returning scalars as
  36. values--values that can fit in registers.
  37.  
  38. `TRADITIONAL_RETURN_FLOAT'
  39.      Define this macro if `-traditional' should not cause functions
  40.      declared to return `float' to convert the value to `double'.
  41.  
  42. `FUNCTION_VALUE (VALTYPE, FUNC)'
  43.      A C expression to create an RTX representing the place where a
  44.      function returns a value of data type VALTYPE.  VALTYPE is a tree
  45.      node representing a data type.  Write `TYPE_MODE (VALTYPE)' to get
  46.      the machine mode used to represent that type.  On many machines,
  47.      only the mode is relevant.  (Actually, on most machines, scalar
  48.      values are returned in the same place regardless of mode).
  49.  
  50.      If `PROMOTE_FUNCTION_RETURN' is defined, you must apply the same
  51.      promotion rules specified in `PROMOTE_MODE' if VALTYPE is a scalar
  52.      type.
  53.  
  54.      If the precise function being called is known, FUNC is a tree node
  55.      (`FUNCTION_DECL') for it; otherwise, FUNC is a null pointer.  This
  56.      makes it possible to use a different value-returning convention
  57.      for specific functions when all their calls are known.
  58.  
  59.      `FUNCTION_VALUE' is not used for return vales with aggregate data
  60.      types, because these are returned in another way.  See
  61.      `STRUCT_VALUE_REGNUM' and related macros, below.
  62.  
  63. `FUNCTION_OUTGOING_VALUE (VALTYPE, FUNC)'
  64.      Define this macro if the target machine has "register windows" so
  65.      that the register in which a function returns its value is not the
  66.      same as the one in which the caller sees the value.
  67.  
  68.      For such machines, `FUNCTION_VALUE' computes the register in which
  69.      the caller will see the value.  `FUNCTION_OUTGOING_VALUE' should be
  70.      defined in a similar fashion to tell the function where to put the
  71.      value.
  72.  
  73.      If `FUNCTION_OUTGOING_VALUE' is not defined, `FUNCTION_VALUE'
  74.      serves both purposes.
  75.  
  76.      `FUNCTION_OUTGOING_VALUE' is not used for return vales with
  77.      aggregate data types, because these are returned in another way.
  78.      See `STRUCT_VALUE_REGNUM' and related macros, below.
  79.  
  80. `LIBCALL_VALUE (MODE)'
  81.      A C expression to create an RTX representing the place where a
  82.      library function returns a value of mode MODE.  If the precise
  83.      function being called is known, FUNC is a tree node
  84.      (`FUNCTION_DECL') for it; otherwise, FUNC is a null pointer.  This
  85.      makes it possible to use a different value-returning convention
  86.      for specific functions when all their calls are known.
  87.  
  88.      Note that "library function" in this context means a compiler
  89.      support routine, used to perform arithmetic, whose name is known
  90.      specially by the compiler and was not mentioned in the C code being
  91.      compiled.
  92.  
  93.      The definition of `LIBRARY_VALUE' need not be concerned aggregate
  94.      data types, because none of the library functions returns such
  95.      types.
  96.  
  97. `FUNCTION_VALUE_REGNO_P (REGNO)'
  98.      A C expression that is nonzero if REGNO is the number of a hard
  99.      register in which the values of called function may come back.
  100.  
  101.      A register whose use for returning values is limited to serving as
  102.      the second of a pair (for a value of type `double', say) need not
  103.      be recognized by this macro.  So for most machines, this definition
  104.      suffices:
  105.  
  106.           #define FUNCTION_VALUE_REGNO_P(N) ((N) == 0)
  107.  
  108.      If the machine has register windows, so that the caller and the
  109.      called function use different registers for the return value, this
  110.      macro should recognize only the caller's register numbers.
  111.  
  112. `APPLY_RESULT_SIZE'
  113.      Define this macro if `untyped_call' and `untyped_return' need more
  114.      space than is implied by `FUNCTION_VALUE_REGNO_P' for saving and
  115.      restoring an arbitrary return value.
  116.  
  117. File: gcc.info,  Node: Aggregate Return,  Next: Caller Saves,  Prev: Scalar Return,  Up: Stack and Calling
  118.  
  119. How Large Values Are Returned
  120. -----------------------------
  121.  
  122.    When a function value's mode is `BLKmode' (and in some other cases),
  123. the value is not returned according to `FUNCTION_VALUE' (*note Scalar
  124. Return::.).  Instead, the caller passes the address of a block of
  125. memory in which the value should be stored.  This address is called the
  126. "structure value address".
  127.  
  128.    This section describes how to control returning structure values in
  129. memory.
  130.  
  131. `RETURN_IN_MEMORY (TYPE)'
  132.      A C expression which can inhibit the returning of certain function
  133.      values in registers, based on the type of value.  A nonzero value
  134.      says to return the function value in memory, just as large
  135.      structures are always returned.  Here TYPE will be a C expression
  136.      of type `tree', representing the data type of the value.
  137.  
  138.      Note that values of mode `BLKmode' must be explicitly handled by
  139.      this macro.  Also, the option `-fpcc-struct-return' takes effect
  140.      regardless of this macro.  On most systems, it is possible to
  141.      leave the macro undefined; this causes a default definition to be
  142.      used, whose value is the constant 1 for `BLKmode' values, and 0
  143.      otherwise.
  144.  
  145.      Do not use this macro to indicate that structures and unions
  146.      should always be returned in memory.  You should instead use
  147.      `DEFAULT_PCC_STRUCT_RETURN' to indicate this.
  148.  
  149. `DEFAULT_PCC_STRUCT_RETURN'
  150.      Define this macro to be 1 if all structure and union return values
  151.      must be in memory.  Since this results in slower code, this should
  152.      be defined only if needed for compatibility with other compilers
  153.      or with an ABI.  If you define this macro to be 0, then the
  154.      conventions used for structure and union return values are decided
  155.      by the `RETURN_IN_MEMORY' macro.
  156.  
  157.      If not defined, this defaults to the value 1.
  158.  
  159. `STRUCT_VALUE_REGNUM'
  160.      If the structure value address is passed in a register, then
  161.      `STRUCT_VALUE_REGNUM' should be the number of that register.
  162.  
  163. `STRUCT_VALUE'
  164.      If the structure value address is not passed in a register, define
  165.      `STRUCT_VALUE' as an expression returning an RTX for the place
  166.      where the address is passed.  If it returns 0, the address is
  167.      passed as an "invisible" first argument.
  168.  
  169. `STRUCT_VALUE_INCOMING_REGNUM'
  170.      On some architectures the place where the structure value address
  171.      is found by the called function is not the same place that the
  172.      caller put it.  This can be due to register windows, or it could
  173.      be because the function prologue moves it to a different place.
  174.  
  175.      If the incoming location of the structure value address is in a
  176.      register, define this macro as the register number.
  177.  
  178. `STRUCT_VALUE_INCOMING'
  179.      If the incoming location is not a register, then you should define
  180.      `STRUCT_VALUE_INCOMING' as an expression for an RTX for where the
  181.      called function should find the value.  If it should find the
  182.      value on the stack, define this to create a `mem' which refers to
  183.      the frame pointer.  A definition of 0 means that the address is
  184.      passed as an "invisible" first argument.
  185.  
  186. `PCC_STATIC_STRUCT_RETURN'
  187.      Define this macro if the usual system convention on the target
  188.      machine for returning structures and unions is for the called
  189.      function to return the address of a static variable containing the
  190.      value.
  191.  
  192.      Do not define this if the usual system convention is for the
  193.      caller to pass an address to the subroutine.
  194.  
  195.      This macro has effect in `-fpcc-struct-return' mode, but it does
  196.      nothing when you use `-freg-struct-return' mode.
  197.  
  198. File: gcc.info,  Node: Caller Saves,  Next: Function Entry,  Prev: Aggregate Return,  Up: Stack and Calling
  199.  
  200. Caller-Saves Register Allocation
  201. --------------------------------
  202.  
  203.    If you enable it, GNU CC can save registers around function calls.
  204. This makes it possible to use call-clobbered registers to hold
  205. variables that must live across calls.
  206.  
  207. `DEFAULT_CALLER_SAVES'
  208.      Define this macro if function calls on the target machine do not
  209.      preserve any registers; in other words, if `CALL_USED_REGISTERS'
  210.      has 1 for all registers.  This macro enables `-fcaller-saves' by
  211.      default.  Eventually that option will be enabled by default on all
  212.      machines and both the option and this macro will be eliminated.
  213.  
  214. `CALLER_SAVE_PROFITABLE (REFS, CALLS)'
  215.      A C expression to determine whether it is worthwhile to consider
  216.      placing a pseudo-register in a call-clobbered hard register and
  217.      saving and restoring it around each function call.  The expression
  218.      should be 1 when this is worth doing, and 0 otherwise.
  219.  
  220.      If you don't define this macro, a default is used which is good on
  221.      most machines: `4 * CALLS < REFS'.
  222.  
  223. File: gcc.info,  Node: Function Entry,  Next: Profiling,  Prev: Caller Saves,  Up: Stack and Calling
  224.  
  225. Function Entry and Exit
  226. -----------------------
  227.  
  228.    This section describes the macros that output function entry
  229. ("prologue") and exit ("epilogue") code.
  230.  
  231. `FUNCTION_PROLOGUE (FILE, SIZE)'
  232.      A C compound statement that outputs the assembler code for entry
  233.      to a function.  The prologue is responsible for setting up the
  234.      stack frame, initializing the frame pointer register, saving
  235.      registers that must be saved, and allocating SIZE additional bytes
  236.      of storage for the local variables.  SIZE is an integer.  FILE is
  237.      a stdio stream to which the assembler code should be output.
  238.  
  239.      The label for the beginning of the function need not be output by
  240.      this macro.  That has already been done when the macro is run.
  241.  
  242.      To determine which registers to save, the macro can refer to the
  243.      array `regs_ever_live': element R is nonzero if hard register R is
  244.      used anywhere within the function.  This implies the function
  245.      prologue should save register R, provided it is not one of the
  246.      call-used registers.  (`FUNCTION_EPILOGUE' must likewise use
  247.      `regs_ever_live'.)
  248.  
  249.      On machines that have "register windows", the function entry code
  250.      does not save on the stack the registers that are in the windows,
  251.      even if they are supposed to be preserved by function calls;
  252.      instead it takes appropriate steps to "push" the register stack,
  253.      if any non-call-used registers are used in the function.
  254.  
  255.      On machines where functions may or may not have frame-pointers, the
  256.      function entry code must vary accordingly; it must set up the frame
  257.      pointer if one is wanted, and not otherwise.  To determine whether
  258.      a frame pointer is in wanted, the macro can refer to the variable
  259.      `frame_pointer_needed'.  The variable's value will be 1 at run
  260.      time in a function that needs a frame pointer.  *Note
  261.      Elimination::.
  262.  
  263.      The function entry code is responsible for allocating any stack
  264.      space required for the function.  This stack space consists of the
  265.      regions listed below.  In most cases, these regions are allocated
  266.      in the order listed, with the last listed region closest to the
  267.      top of the stack (the lowest address if `STACK_GROWS_DOWNWARD' is
  268.      defined, and the highest address if it is not defined).  You can
  269.      use a different order for a machine if doing so is more convenient
  270.      or required for compatibility reasons.  Except in cases where
  271.      required by standard or by a debugger, there is no reason why the
  272.      stack layout used by GCC need agree with that used by other
  273.      compilers for a machine.
  274.  
  275.         * A region of `current_function_pretend_args_size' bytes of
  276.           uninitialized space just underneath the first argument
  277.           arriving on the stack.  (This may not be at the very start of
  278.           the allocated stack region if the calling sequence has pushed
  279.           anything else since pushing the stack arguments.  But
  280.           usually, on such machines, nothing else has been pushed yet,
  281.           because the function prologue itself does all the pushing.)
  282.           This region is used on machines where an argument may be
  283.           passed partly in registers and partly in memory, and, in some
  284.           cases to support the features in `varargs.h' and `stdargs.h'.
  285.  
  286.         * An area of memory used to save certain registers used by the
  287.           function.  The size of this area, which may also include
  288.           space for such things as the return address and pointers to
  289.           previous stack frames, is machine-specific and usually
  290.           depends on which registers have been used in the function.
  291.           Machines with register windows often do not require a save
  292.           area.
  293.  
  294.         * A region of at least SIZE bytes, possibly rounded up to an
  295.           allocation boundary, to contain the local variables of the
  296.           function.  On some machines, this region and the save area
  297.           may occur in the opposite order, with the save area closer to
  298.           the top of the stack.
  299.  
  300.         * Optionally, when `ACCUMULATE_OUTGOING_ARGS' is defined, a
  301.           region of `current_function_outgoing_args_size' bytes to be
  302.           used for outgoing argument lists of the function.  *Note
  303.           Stack Arguments::.
  304.  
  305.      Normally, it is necessary for the macros `FUNCTION_PROLOGUE' and
  306.      `FUNCTION_EPILOGUE' to treat leaf functions specially.  The C
  307.      variable `leaf_function' is nonzero for such a function.
  308.  
  309. `EXIT_IGNORE_STACK'
  310.      Define this macro as a C expression that is nonzero if the return
  311.      instruction or the function epilogue ignores the value of the stack
  312.      pointer; in other words, if it is safe to delete an instruction to
  313.      adjust the stack pointer before a return from the function.
  314.  
  315.      Note that this macro's value is relevant only for functions for
  316.      which frame pointers are maintained.  It is never safe to delete a
  317.      final stack adjustment in a function that has no frame pointer,
  318.      and the compiler knows this regardless of `EXIT_IGNORE_STACK'.
  319.  
  320. `FUNCTION_EPILOGUE (FILE, SIZE)'
  321.      A C compound statement that outputs the assembler code for exit
  322.      from a function.  The epilogue is responsible for restoring the
  323.      saved registers and stack pointer to their values when the
  324.      function was called, and returning control to the caller.  This
  325.      macro takes the same arguments as the macro `FUNCTION_PROLOGUE',
  326.      and the registers to restore are determined from `regs_ever_live'
  327.      and `CALL_USED_REGISTERS' in the same way.
  328.  
  329.      On some machines, there is a single instruction that does all the
  330.      work of returning from the function.  On these machines, give that
  331.      instruction the name `return' and do not define the macro
  332.      `FUNCTION_EPILOGUE' at all.
  333.  
  334.      Do not define a pattern named `return' if you want the
  335.      `FUNCTION_EPILOGUE' to be used.  If you want the target switches
  336.      to control whether return instructions or epilogues are used,
  337.      define a `return' pattern with a validity condition that tests the
  338.      target switches appropriately.  If the `return' pattern's validity
  339.      condition is false, epilogues will be used.
  340.  
  341.      On machines where functions may or may not have frame-pointers, the
  342.      function exit code must vary accordingly.  Sometimes the code for
  343.      these two cases is completely different.  To determine whether a
  344.      frame pointer is wanted, the macro can refer to the variable
  345.      `frame_pointer_needed'.  The variable's value will be 1 when
  346.      compiling a function that needs a frame pointer.
  347.  
  348.      Normally, `FUNCTION_PROLOGUE' and `FUNCTION_EPILOGUE' must treat
  349.      leaf functions specially.  The C variable `leaf_function' is
  350.      nonzero for such a function.  *Note Leaf Functions::.
  351.  
  352.      On some machines, some functions pop their arguments on exit while
  353.      others leave that for the caller to do.  For example, the 68020
  354.      when given `-mrtd' pops arguments in functions that take a fixed
  355.      number of arguments.
  356.  
  357.      Your definition of the macro `RETURN_POPS_ARGS' decides which
  358.      functions pop their own arguments.  `FUNCTION_EPILOGUE' needs to
  359.      know what was decided.  The variable that is called
  360.      `current_function_pops_args' is the number of bytes of its
  361.      arguments that a function should pop.  *Note Scalar Return::.
  362.  
  363. `DELAY_SLOTS_FOR_EPILOGUE'
  364.      Define this macro if the function epilogue contains delay slots to
  365.      which instructions from the rest of the function can be "moved".
  366.      The definition should be a C expression whose value is an integer
  367.      representing the number of delay slots there.
  368.  
  369. `ELIGIBLE_FOR_EPILOGUE_DELAY (INSN, N)'
  370.      A C expression that returns 1 if INSN can be placed in delay slot
  371.      number N of the epilogue.
  372.  
  373.      The argument N is an integer which identifies the delay slot now
  374.      being considered (since different slots may have different rules of
  375.      eligibility).  It is never negative and is always less than the
  376.      number of epilogue delay slots (what `DELAY_SLOTS_FOR_EPILOGUE'
  377.      returns).  If you reject a particular insn for a given delay slot,
  378.      in principle, it may be reconsidered for a subsequent delay slot.
  379.      Also, other insns may (at least in principle) be considered for
  380.      the so far unfilled delay slot.
  381.  
  382.      The insns accepted to fill the epilogue delay slots are put in an
  383.      RTL list made with `insn_list' objects, stored in the variable
  384.      `current_function_epilogue_delay_list'.  The insn for the first
  385.      delay slot comes first in the list.  Your definition of the macro
  386.      `FUNCTION_EPILOGUE' should fill the delay slots by outputting the
  387.      insns in this list, usually by calling `final_scan_insn'.
  388.  
  389.      You need not define this macro if you did not define
  390.      `DELAY_SLOTS_FOR_EPILOGUE'.
  391.  
  392. File: gcc.info,  Node: Profiling,  Prev: Function Entry,  Up: Stack and Calling
  393.  
  394. Generating Code for Profiling
  395. -----------------------------
  396.  
  397.    These macros will help you generate code for profiling.
  398.  
  399. `FUNCTION_PROFILER (FILE, LABELNO)'
  400.      A C statement or compound statement to output to FILE some
  401.      assembler code to call the profiling subroutine `mcount'.  Before
  402.      calling, the assembler code must load the address of a counter
  403.      variable into a register where `mcount' expects to find the
  404.      address.  The name of this variable is `LP' followed by the number
  405.      LABELNO, so you would generate the name using `LP%d' in a
  406.      `fprintf'.
  407.  
  408.      The details of how the address should be passed to `mcount' are
  409.      determined by your operating system environment, not by GNU CC.  To
  410.      figure them out, compile a small program for profiling using the
  411.      system's installed C compiler and look at the assembler code that
  412.      results.
  413.  
  414. `PROFILE_BEFORE_PROLOGUE'
  415.      Define this macro if the code for function profiling should come
  416.      before the function prologue.  Normally, the profiling code comes
  417.      after.
  418.  
  419. `FUNCTION_BLOCK_PROFILER (FILE, LABELNO)'
  420.      A C statement or compound statement to output to FILE some
  421.      assembler code to initialize basic-block profiling for the current
  422.      object module.  This code should call the subroutine
  423.      `__bb_init_func' once per object module, passing it as its sole
  424.      argument the address of a block allocated in the object module.
  425.  
  426.      The name of the block is a local symbol made with this statement:
  427.  
  428.           ASM_GENERATE_INTERNAL_LABEL (BUFFER, "LPBX", 0);
  429.  
  430.      Of course, since you are writing the definition of
  431.      `ASM_GENERATE_INTERNAL_LABEL' as well as that of this macro, you
  432.      can take a short cut in the definition of this macro and use the
  433.      name that you know will result.
  434.  
  435.      The first word of this block is a flag which will be nonzero if the
  436.      object module has already been initialized.  So test this word
  437.      first, and do not call `__bb_init_func' if the flag is nonzero.
  438.  
  439. `BLOCK_PROFILER (FILE, BLOCKNO)'
  440.      A C statement or compound statement to increment the count
  441.      associated with the basic block number BLOCKNO.  Basic blocks are
  442.      numbered separately from zero within each compilation.  The count
  443.      associated with block number BLOCKNO is at index BLOCKNO in a
  444.      vector of words; the name of this array is a local symbol made
  445.      with this statement:
  446.  
  447.           ASM_GENERATE_INTERNAL_LABEL (BUFFER, "LPBX", 2);
  448.  
  449.      Of course, since you are writing the definition of
  450.      `ASM_GENERATE_INTERNAL_LABEL' as well as that of this macro, you
  451.      can take a short cut in the definition of this macro and use the
  452.      name that you know will result.
  453.  
  454. `BLOCK_PROFILER_CODE'
  455.      A C function or functions which are needed in the library to
  456.      support block profiling.
  457.  
  458. File: gcc.info,  Node: Varargs,  Next: Trampolines,  Prev: Stack and Calling,  Up: Target Macros
  459.  
  460. Implementing the Varargs Macros
  461. ===============================
  462.  
  463.    GNU CC comes with an implementation of `varargs.h' and `stdarg.h'
  464. that work without change on machines that pass arguments on the stack.
  465. Other machines require their own implementations of varargs, and the
  466. two machine independent header files must have conditionals to include
  467. it.
  468.  
  469.    ANSI `stdarg.h' differs from traditional `varargs.h' mainly in the
  470. calling convention for `va_start'.  The traditional implementation
  471. takes just one argument, which is the variable in which to store the
  472. argument pointer.  The ANSI implementation of `va_start' takes an
  473. additional second argument.  The user is supposed to write the last
  474. named argument of the function here.
  475.  
  476.    However, `va_start' should not use this argument.  The way to find
  477. the end of the named arguments is with the built-in functions described
  478. below.
  479.  
  480. `__builtin_saveregs ()'
  481.      Use this built-in function to save the argument registers in
  482.      memory so that the varargs mechanism can access them.  Both ANSI
  483.      and traditional versions of `va_start' must use
  484.      `__builtin_saveregs', unless you use `SETUP_INCOMING_VARARGS' (see
  485.      below) instead.
  486.  
  487.      On some machines, `__builtin_saveregs' is open-coded under the
  488.      control of the macro `EXPAND_BUILTIN_SAVEREGS'.  On other machines,
  489.      it calls a routine written in assembler language, found in
  490.      `libgcc2.c'.
  491.  
  492.      Code generated for the call to `__builtin_saveregs' appears at the
  493.      beginning of the function, as opposed to where the call to
  494.      `__builtin_saveregs' is written, regardless of what the code is.
  495.      This is because the registers must be saved before the function
  496.      starts to use them for its own purposes.
  497.  
  498. `__builtin_args_info (CATEGORY)'
  499.      Use this built-in function to find the first anonymous arguments in
  500.      registers.
  501.  
  502.      In general, a machine may have several categories of registers
  503.      used for arguments, each for a particular category of data types.
  504.      (For example, on some machines, floating-point registers are used
  505.      for floating-point arguments while other arguments are passed in
  506.      the general registers.) To make non-varargs functions use the
  507.      proper calling convention, you have defined the `CUMULATIVE_ARGS'
  508.      data type to record how many registers in each category have been
  509.      used so far
  510.  
  511.      `__builtin_args_info' accesses the same data structure of type
  512.      `CUMULATIVE_ARGS' after the ordinary argument layout is finished
  513.      with it, with CATEGORY specifying which word to access.  Thus, the
  514.      value indicates the first unused register in a given category.
  515.  
  516.      Normally, you would use `__builtin_args_info' in the implementation
  517.      of `va_start', accessing each category just once and storing the
  518.      value in the `va_list' object.  This is because `va_list' will
  519.      have to update the values, and there is no way to alter the values
  520.      accessed by `__builtin_args_info'.
  521.  
  522. `__builtin_next_arg ()'
  523.      This is the equivalent of `__builtin_args_info', for stack
  524.      arguments.  It returns the address of the first anonymous stack
  525.      argument, as type `void *'. If `ARGS_GROW_DOWNWARD', it returns
  526.      the address of the location above the first anonymous stack
  527.      argument. Use it in `va_start' to initialize the pointer for
  528.      fetching arguments from the stack.
  529.  
  530. `__builtin_classify_type (OBJECT)'
  531.      Since each machine has its own conventions for which data types are
  532.      passed in which kind of register, your implementation of `va_arg'
  533.      has to embody these conventions.  The easiest way to categorize the
  534.      specified data type is to use `__builtin_classify_type' together
  535.      with `sizeof' and `__alignof__'.
  536.  
  537.      `__builtin_classify_type' ignores the value of OBJECT, considering
  538.      only its data type.  It returns an integer describing what kind of
  539.      type that is--integer, floating, pointer, structure, and so on.
  540.  
  541.      The file `typeclass.h' defines an enumeration that you can use to
  542.      interpret the values of `__builtin_classify_type'.
  543.  
  544.    These machine description macros help implement varargs:
  545.  
  546. `EXPAND_BUILTIN_SAVEREGS (ARGS)'
  547.      If defined, is a C expression that produces the machine-specific
  548.      code for a call to `__builtin_saveregs'.  This code will be moved
  549.      to the very beginning of the function, before any parameter access
  550.      are made.  The return value of this function should be an RTX that
  551.      contains the value to use as the return of `__builtin_saveregs'.
  552.  
  553.      The argument ARGS is a `tree_list' containing the arguments that
  554.      were passed to `__builtin_saveregs'.
  555.  
  556.      If this macro is not defined, the compiler will output an ordinary
  557.      call to the library function `__builtin_saveregs'.
  558.  
  559. `SETUP_INCOMING_VARARGS (ARGS_SO_FAR, MODE, TYPE,'
  560.      PRETEND_ARGS_SIZE, SECOND_TIME) This macro offers an alternative
  561.      to using `__builtin_saveregs' and defining the macro
  562.      `EXPAND_BUILTIN_SAVEREGS'.  Use it to store the anonymous register
  563.      arguments into the stack so that all the arguments appear to have
  564.      been passed consecutively on the stack.  Once this is done, you
  565.      can use the standard implementation of varargs that works for
  566.      machines that pass all their arguments on the stack.
  567.  
  568.      The argument ARGS_SO_FAR is the `CUMULATIVE_ARGS' data structure,
  569.      containing the values that obtain after processing of the named
  570.      arguments.  The arguments MODE and TYPE describe the last named
  571.      argument--its machine mode and its data type as a tree node.
  572.  
  573.      The macro implementation should do two things: first, push onto the
  574.      stack all the argument registers *not* used for the named
  575.      arguments, and second, store the size of the data thus pushed into
  576.      the `int'-valued variable whose name is supplied as the argument
  577.      PRETEND_ARGS_SIZE.  The value that you store here will serve as
  578.      additional offset for setting up the stack frame.
  579.  
  580.      Because you must generate code to push the anonymous arguments at
  581.      compile time without knowing their data types,
  582.      `SETUP_INCOMING_VARARGS' is only useful on machines that have just
  583.      a single category of argument register and use it uniformly for
  584.      all data types.
  585.  
  586.      If the argument SECOND_TIME is nonzero, it means that the
  587.      arguments of the function are being analyzed for the second time.
  588.      This happens for an inline function, which is not actually
  589.      compiled until the end of the source file.  The macro
  590.      `SETUP_INCOMING_VARARGS' should not generate any instructions in
  591.      this case.
  592.  
  593. File: gcc.info,  Node: Trampolines,  Next: Library Calls,  Prev: Varargs,  Up: Target Macros
  594.  
  595. Trampolines for Nested Functions
  596. ================================
  597.  
  598.    A "trampoline" is a small piece of code that is created at run time
  599. when the address of a nested function is taken.  It normally resides on
  600. the stack, in the stack frame of the containing function.  These macros
  601. tell GNU CC how to generate code to allocate and initialize a
  602. trampoline.
  603.  
  604.    The instructions in the trampoline must do two things: load a
  605. constant address into the static chain register, and jump to the real
  606. address of the nested function.  On CISC machines such as the m68k,
  607. this requires two instructions, a move immediate and a jump.  Then the
  608. two addresses exist in the trampoline as word-long immediate operands.
  609. On RISC machines, it is often necessary to load each address into a
  610. register in two parts.  Then pieces of each address form separate
  611. immediate operands.
  612.  
  613.    The code generated to initialize the trampoline must store the
  614. variable parts--the static chain value and the function address--into
  615. the immediate operands of the instructions.  On a CISC machine, this is
  616. simply a matter of copying each address to a memory reference at the
  617. proper offset from the start of the trampoline.  On a RISC machine, it
  618. may be necessary to take out pieces of the address and store them
  619. separately.
  620.  
  621. `TRAMPOLINE_TEMPLATE (FILE)'
  622.      A C statement to output, on the stream FILE, assembler code for a
  623.      block of data that contains the constant parts of a trampoline.
  624.      This code should not include a label--the label is taken care of
  625.      automatically.
  626.  
  627. `TRAMPOLINE_SECTION'
  628.      The name of a subroutine to switch to the section in which the
  629.      trampoline template is to be placed (*note Sections::.).  The
  630.      default is a value of `readonly_data_section', which places the
  631.      trampoline in the section containing read-only data.
  632.  
  633. `TRAMPOLINE_SIZE'
  634.      A C expression for the size in bytes of the trampoline, as an
  635.      integer.
  636.  
  637. `TRAMPOLINE_ALIGNMENT'
  638.      Alignment required for trampolines, in bits.
  639.  
  640.      If you don't define this macro, the value of `BIGGEST_ALIGNMENT'
  641.      is used for aligning trampolines.
  642.  
  643. `INITIALIZE_TRAMPOLINE (ADDR, FNADDR, STATIC_CHAIN)'
  644.      A C statement to initialize the variable parts of a trampoline.
  645.      aDDR is an RTX for the address of the trampoline; FNADDR is an RTX
  646.      for the address of the nested function; STATIC_CHAIN is an RTX for
  647.      the static chain value that should be passed to the function when
  648.      it is called.
  649.  
  650. `ALLOCATE_TRAMPOLINE (FP)'
  651.      A C expression to allocate run-time space for a trampoline.  The
  652.      expression value should be an RTX representing a memory reference
  653.      to the space for the trampoline.
  654.  
  655.      If this macro is not defined, by default the trampoline is
  656.      allocated as a stack slot.  This default is right for most
  657.      machines.  The exceptions are machines where it is impossible to
  658.      execute instructions in the stack area.  On such machines, you may
  659.      have to implement a separate stack, using this macro in
  660.      conjunction with `FUNCTION_PROLOGUE' and `FUNCTION_EPILOGUE'.
  661.  
  662.      FP points to a data structure, a `struct function', which
  663.      describes the compilation status of the immediate containing
  664.      function of the function which the trampoline is for.  Normally
  665.      (when `ALLOCATE_TRAMPOLINE' is not defined), the stack slot for the
  666.      trampoline is in the stack frame of this containing function.
  667.      Other allocation strategies probably must do something analogous
  668.      with this information.
  669.  
  670.    Implementing trampolines is difficult on many machines because they
  671. have separate instruction and data caches.  Writing into a stack
  672. location fails to clear the memory in the instruction cache, so when
  673. the program jumps to that location, it executes the old contents.
  674.  
  675.    Here are two possible solutions.  One is to clear the relevant parts
  676. of the instruction cache whenever a trampoline is set up.  The other is
  677. to make all trampolines identical, by having them jump to a standard
  678. subroutine.  The former technique makes trampoline execution faster; the
  679. latter makes initialization faster.
  680.  
  681.    To clear the instruction cache when a trampoline is initialized,
  682. define the following macros which describe the shape of the cache.
  683.  
  684. `INSN_CACHE_SIZE'
  685.      The total size in bytes of the cache.
  686.  
  687. `INSN_CACHE_LINE_WIDTH'
  688.      The length in bytes of each cache line.  The cache is divided into
  689.      cache lines which are disjoint slots, each holding a contiguous
  690.      chunk of data fetched from memory.  Each time data is brought into
  691.      the cache, an entire line is read at once.  The data loaded into a
  692.      cache line is always aligned on a boundary equal to the line size.
  693.  
  694. `INSN_CACHE_DEPTH'
  695.      The number of alternative cache lines that can hold any particular
  696.      memory location.
  697.  
  698.    Alternatively, if the machine has system calls or instructions to
  699. clear the instruction cache directly, you can define the following
  700. macro.
  701.  
  702. `'
  703.      If defined, expands to a C expression clearing the *instruction
  704.      cache* in the specified interval.  If it is not defined, and the
  705.      macro INSN_CACHE_SIZE is defined, some generic code is generated
  706.      to clear the cache.  The definition of this macro would typically
  707.      be a series of `asm' statements.  Both BEG and END are both pointer
  708.      expressions.
  709.  
  710.    To use a standard subroutine, define the following macro.  In
  711. addition, you must make sure that the instructions in a trampoline fill
  712. an entire cache line with identical instructions, or else ensure that
  713. the beginning of the trampoline code is always aligned at the same
  714. point in its cache line.  Look in `m68k.h' as a guide.
  715.  
  716. `TRANSFER_FROM_TRAMPOLINE'
  717.      Define this macro if trampolines need a special subroutine to do
  718.      their work.  The macro should expand to a series of `asm'
  719.      statements which will be compiled with GNU CC.  They go in a
  720.      library function named `__transfer_from_trampoline'.
  721.  
  722.      If you need to avoid executing the ordinary prologue code of a
  723.      compiled C function when you jump to the subroutine, you can do so
  724.      by placing a special label of your own in the assembler code.  Use
  725.      one `asm' statement to generate an assembler label, and another to
  726.      make the label global.  Then trampolines can use that label to
  727.      jump directly to your special assembler code.
  728.  
  729. File: gcc.info,  Node: Library Calls,  Next: Addressing Modes,  Prev: Trampolines,  Up: Target Macros
  730.  
  731. Implicit Calls to Library Routines
  732. ==================================
  733.  
  734. `MULSI3_LIBCALL'
  735.      A C string constant giving the name of the function to call for
  736.      multiplication of one signed full-word by another.  If you do not
  737.      define this macro, the default name is used, which is `__mulsi3',
  738.      a function defined in `libgcc.a'.
  739.  
  740. `DIVSI3_LIBCALL'
  741.      A C string constant giving the name of the function to call for
  742.      division of one signed full-word by another.  If you do not define
  743.      this macro, the default name is used, which is `__divsi3', a
  744.      function defined in `libgcc.a'.
  745.  
  746. `UDIVSI3_LIBCALL'
  747.      A C string constant giving the name of the function to call for
  748.      division of one unsigned full-word by another.  If you do not
  749.      define this macro, the default name is used, which is `__udivsi3',
  750.      a function defined in `libgcc.a'.
  751.  
  752. `MODSI3_LIBCALL'
  753.      A C string constant giving the name of the function to call for the
  754.      remainder in division of one signed full-word by another.  If you
  755.      do not define this macro, the default name is used, which is
  756.      `__modsi3', a function defined in `libgcc.a'.
  757.  
  758. `UMODSI3_LIBCALL'
  759.      A C string constant giving the name of the function to call for the
  760.      remainder in division of one unsigned full-word by another.  If
  761.      you do not define this macro, the default name is used, which is
  762.      `__umodsi3', a function defined in `libgcc.a'.
  763.  
  764. `MULDI3_LIBCALL'
  765.      A C string constant giving the name of the function to call for
  766.      multiplication of one signed double-word by another.  If you do not
  767.      define this macro, the default name is used, which is `__muldi3',
  768.      a function defined in `libgcc.a'.
  769.  
  770. `DIVDI3_LIBCALL'
  771.      A C string constant giving the name of the function to call for
  772.      division of one signed double-word by another.  If you do not
  773.      define this macro, the default name is used, which is `__divdi3', a
  774.      function defined in `libgcc.a'.
  775.  
  776. `UDIVDI3_LIBCALL'
  777.      A C string constant giving the name of the function to call for
  778.      division of one unsigned full-word by another.  If you do not
  779.      define this macro, the default name is used, which is `__udivdi3',
  780.      a function defined in `libgcc.a'.
  781.  
  782. `MODDI3_LIBCALL'
  783.      A C string constant giving the name of the function to call for the
  784.      remainder in division of one signed double-word by another.  If
  785.      you do not define this macro, the default name is used, which is
  786.      `__moddi3', a function defined in `libgcc.a'.
  787.  
  788. `UMODDI3_LIBCALL'
  789.      A C string constant giving the name of the function to call for the
  790.      remainder in division of one unsigned full-word by another.  If
  791.      you do not define this macro, the default name is used, which is
  792.      `__umoddi3', a function defined in `libgcc.a'.
  793.  
  794. `TARGET_EDOM'
  795.      The value of `EDOM' on the target machine, as a C integer constant
  796.      expression.  If you don't define this macro, GNU CC does not
  797.      attempt to deposit the value of `EDOM' into `errno' directly.
  798.      Look in `/usr/include/errno.h' to find the value of `EDOM' on your
  799.      system.
  800.  
  801.      If you do not define `TARGET_EDOM', then compiled code reports
  802.      domain errors by calling the library function and letting it
  803.      report the error.  If mathematical functions on your system use
  804.      `matherr' when there is an error, then you should leave
  805.      `TARGET_EDOM' undefined so that `matherr' is used normally.
  806.  
  807. `GEN_ERRNO_RTX'
  808.      Define this macro as a C expression to create an rtl expression
  809.      that refers to the global "variable" `errno'.  (On certain systems,
  810.      `errno' may not actually be a variable.)  If you don't define this
  811.      macro, a reasonable default is used.
  812.  
  813. `TARGET_MEM_FUNCTIONS'
  814.      Define this macro if GNU CC should generate calls to the System V
  815.      (and ANSI C) library functions `memcpy' and `memset' rather than
  816.      the BSD functions `bcopy' and `bzero'.
  817.  
  818. `LIBGCC_NEEDS_DOUBLE'
  819.      Define this macro if only `float' arguments cannot be passed to
  820.      library routines (so they must be converted to `double').  This
  821.      macro affects both how library calls are generated and how the
  822.      library routines in `libgcc1.c' accept their arguments.  It is
  823.      useful on machines where floating and fixed point arguments are
  824.      passed differently, such as the i860.
  825.  
  826. `FLOAT_ARG_TYPE'
  827.      Define this macro to override the type used by the library
  828.      routines to pick up arguments of type `float'.  (By default, they
  829.      use a union of `float' and `int'.)
  830.  
  831.      The obvious choice would be `float'--but that won't work with
  832.      traditional C compilers that expect all arguments declared as
  833.      `float' to arrive as `double'.  To avoid this conversion, the
  834.      library routines ask for the value as some other type and then
  835.      treat it as a `float'.
  836.  
  837.      On some systems, no other type will work for this.  For these
  838.      systems, you must use `LIBGCC_NEEDS_DOUBLE' instead, to force
  839.      conversion of the values `double' before they are passed.
  840.  
  841. `FLOATIFY (PASSED-VALUE)'
  842.      Define this macro to override the way library routines redesignate
  843.      a `float' argument as a `float' instead of the type it was passed
  844.      as.  The default is an expression which takes the `float' field of
  845.      the union.
  846.  
  847. `FLOAT_VALUE_TYPE'
  848.      Define this macro to override the type used by the library
  849.      routines to return values that ought to have type `float'.  (By
  850.      default, they use `int'.)
  851.  
  852.      The obvious choice would be `float'--but that won't work with
  853.      traditional C compilers gratuitously convert values declared as
  854.      `float' into `double'.
  855.  
  856. `INTIFY (FLOAT-VALUE)'
  857.      Define this macro to override the way the value of a
  858.      `float'-returning library routine should be packaged in order to
  859.      return it.  These functions are actually declared to return type
  860.      `FLOAT_VALUE_TYPE' (normally `int').
  861.  
  862.      These values can't be returned as type `float' because traditional
  863.      C compilers would gratuitously convert the value to a `double'.
  864.  
  865.      A local variable named `intify' is always available when the macro
  866.      `INTIFY' is used.  It is a union of a `float' field named `f' and
  867.      a field named `i' whose type is `FLOAT_VALUE_TYPE' or `int'.
  868.  
  869.      If you don't define this macro, the default definition works by
  870.      copying the value through that union.
  871.  
  872. `nongcc_SI_type'
  873.      Define this macro as the name of the data type corresponding to
  874.      `SImode' in the system's own C compiler.
  875.  
  876.      You need not define this macro if that type is `long int', as it
  877.      usually is.
  878.  
  879. `nongcc_word_type'
  880.      Define this macro as the name of the data type corresponding to the
  881.      word_mode in the system's own C compiler.
  882.  
  883.      You need not define this macro if that type is `long int', as it
  884.      usually is.
  885.  
  886. `perform_...'
  887.      Define these macros to supply explicit C statements to carry out
  888.      various arithmetic operations on types `float' and `double' in the
  889.      library routines in `libgcc1.c'.  See that file for a full list of
  890.      these macros and their arguments.
  891.  
  892.      On most machines, you don't need to define any of these macros,
  893.      because the C compiler that comes with the system takes care of
  894.      doing them.
  895.  
  896. `NEXT_OBJC_RUNTIME'
  897.      Define this macro to generate code for Objective C message sending
  898.      using the calling convention of the NeXT system.  This calling
  899.      convention involves passing the object, the selector and the
  900.      method arguments all at once to the method-lookup library function.
  901.  
  902.      The default calling convention passes just the object and the
  903.      selector to the lookup function, which returns a pointer to the
  904.      method.
  905.  
  906. File: gcc.info,  Node: Addressing Modes,  Next: Condition Code,  Prev: Library Calls,  Up: Target Macros
  907.  
  908. Addressing Modes
  909. ================
  910.  
  911. `HAVE_POST_INCREMENT'
  912.      Define this macro if the machine supports post-increment
  913.      addressing.
  914.  
  915. `HAVE_PRE_INCREMENT'
  916. `HAVE_POST_DECREMENT'
  917. `HAVE_PRE_DECREMENT'
  918.      Similar for other kinds of addressing.
  919.  
  920. `CONSTANT_ADDRESS_P (X)'
  921.      A C expression that is 1 if the RTX X is a constant which is a
  922.      valid address.  On most machines, this can be defined as
  923.      `CONSTANT_P (X)', but a few machines are more restrictive in which
  924.      constant addresses are supported.
  925.  
  926.      `CONSTANT_P' accepts integer-values expressions whose values are
  927.      not explicitly known, such as `symbol_ref', `label_ref', and
  928.      `high' expressions and `const' arithmetic expressions, in addition
  929.      to `const_int' and `const_double' expressions.
  930.  
  931. `MAX_REGS_PER_ADDRESS'
  932.      A number, the maximum number of registers that can appear in a
  933.      valid memory address.  Note that it is up to you to specify a
  934.      value equal to the maximum number that `GO_IF_LEGITIMATE_ADDRESS'
  935.      would ever accept.
  936.  
  937. `GO_IF_LEGITIMATE_ADDRESS (MODE, X, LABEL)'
  938.      A C compound statement with a conditional `goto LABEL;' executed
  939.      if X (an RTX) is a legitimate memory address on the target machine
  940.      for a memory operand of mode MODE.
  941.  
  942.      It usually pays to define several simpler macros to serve as
  943.      subroutines for this one.  Otherwise it may be too complicated to
  944.      understand.
  945.  
  946.      This macro must exist in two variants: a strict variant and a
  947.      non-strict one.  The strict variant is used in the reload pass.  It
  948.      must be defined so that any pseudo-register that has not been
  949.      allocated a hard register is considered a memory reference.  In
  950.      contexts where some kind of register is required, a pseudo-register
  951.      with no hard register must be rejected.
  952.  
  953.      The non-strict variant is used in other passes.  It must be
  954.      defined to accept all pseudo-registers in every context where some
  955.      kind of register is required.
  956.  
  957.      Compiler source files that want to use the strict variant of this
  958.      macro define the macro `REG_OK_STRICT'.  You should use an `#ifdef
  959.      REG_OK_STRICT' conditional to define the strict variant in that
  960.      case and the non-strict variant otherwise.
  961.  
  962.      Subroutines to check for acceptable registers for various purposes
  963.      (one for base registers, one for index registers, and so on) are
  964.      typically among the subroutines used to define
  965.      `GO_IF_LEGITIMATE_ADDRESS'.  Then only these subroutine macros
  966.      need have two variants; the higher levels of macros may be the
  967.      same whether strict or not.
  968.  
  969.      Normally, constant addresses which are the sum of a `symbol_ref'
  970.      and an integer are stored inside a `const' RTX to mark them as
  971.      constant.  Therefore, there is no need to recognize such sums
  972.      specifically as legitimate addresses.  Normally you would simply
  973.      recognize any `const' as legitimate.
  974.  
  975.      Usually `PRINT_OPERAND_ADDRESS' is not prepared to handle constant
  976.      sums that are not marked with  `const'.  It assumes that a naked
  977.      `plus' indicates indexing.  If so, then you *must* reject such
  978.      naked constant sums as illegitimate addresses, so that none of
  979.      them will be given to `PRINT_OPERAND_ADDRESS'.
  980.  
  981.      On some machines, whether a symbolic address is legitimate depends
  982.      on the section that the address refers to.  On these machines,
  983.      define the macro `ENCODE_SECTION_INFO' to store the information
  984.      into the `symbol_ref', and then check for it here.  When you see a
  985.      `const', you will have to look inside it to find the `symbol_ref'
  986.      in order to determine the section.  *Note Assembler Format::.
  987.  
  988.      The best way to modify the name string is by adding text to the
  989.      beginning, with suitable punctuation to prevent any ambiguity.
  990.      Allocate the new name in `saveable_obstack'.  You will have to
  991.      modify `ASM_OUTPUT_LABELREF' to remove and decode the added text
  992.      and output the name accordingly, and define `STRIP_NAME_ENCODING'
  993.      to access the original name string.
  994.  
  995.      You can check the information stored here into the `symbol_ref' in
  996.      the definitions of the macros `GO_IF_LEGITIMATE_ADDRESS' and
  997.      `PRINT_OPERAND_ADDRESS'.
  998.  
  999. `REG_OK_FOR_BASE_P (X)'
  1000.      A C expression that is nonzero if X (assumed to be a `reg' RTX) is
  1001.      valid for use as a base register.  For hard registers, it should
  1002.      always accept those which the hardware permits and reject the
  1003.      others.  Whether the macro accepts or rejects pseudo registers
  1004.      must be controlled by `REG_OK_STRICT' as described above.  This
  1005.      usually requires two variant definitions, of which `REG_OK_STRICT'
  1006.      controls the one actually used.
  1007.  
  1008. `REG_OK_FOR_INDEX_P (X)'
  1009.      A C expression that is nonzero if X (assumed to be a `reg' RTX) is
  1010.      valid for use as an index register.
  1011.  
  1012.      The difference between an index register and a base register is
  1013.      that the index register may be scaled.  If an address involves the
  1014.      sum of two registers, neither one of them scaled, then either one
  1015.      may be labeled the "base" and the other the "index"; but whichever
  1016.      labeling is used must fit the machine's constraints of which
  1017.      registers may serve in each capacity.  The compiler will try both
  1018.      labelings, looking for one that is valid, and will reload one or
  1019.      both registers only if neither labeling works.
  1020.  
  1021. `LEGITIMIZE_ADDRESS (X, OLDX, MODE, WIN)'
  1022.      A C compound statement that attempts to replace X with a valid
  1023.      memory address for an operand of mode MODE.  WIN will be a C
  1024.      statement label elsewhere in the code; the macro definition may use
  1025.  
  1026.           GO_IF_LEGITIMATE_ADDRESS (MODE, X, WIN);
  1027.  
  1028.      to avoid further processing if the address has become legitimate.
  1029.  
  1030.      X will always be the result of a call to `break_out_memory_refs',
  1031.      and OLDX will be the operand that was given to that function to
  1032.      produce X.
  1033.  
  1034.      The code generated by this macro should not alter the substructure
  1035.      of X.  If it transforms X into a more legitimate form, it should
  1036.      assign X (which will always be a C variable) a new value.
  1037.  
  1038.      It is not necessary for this macro to come up with a legitimate
  1039.      address.  The compiler has standard ways of doing so in all cases.
  1040.      In fact, it is safe for this macro to do nothing.  But often a
  1041.      machine-dependent strategy can generate better code.
  1042.  
  1043. `GO_IF_MODE_DEPENDENT_ADDRESS (ADDR, LABEL)'
  1044.      A C statement or compound statement with a conditional `goto
  1045.      LABEL;' executed if memory address X (an RTX) can have different
  1046.      meanings depending on the machine mode of the memory reference it
  1047.      is used for or if the address is valid for some modes but not
  1048.      others.
  1049.  
  1050.      Autoincrement and autodecrement addresses typically have
  1051.      mode-dependent effects because the amount of the increment or
  1052.      decrement is the size of the operand being addressed.  Some
  1053.      machines have other mode-dependent addresses.  Many RISC machines
  1054.      have no mode-dependent addresses.
  1055.  
  1056.      You may assume that ADDR is a valid address for the machine.
  1057.  
  1058. `LEGITIMATE_CONSTANT_P (X)'
  1059.      A C expression that is nonzero if X is a legitimate constant for
  1060.      an immediate operand on the target machine.  You can assume that X
  1061.      satisfies `CONSTANT_P', so you need not check this.  In fact, `1'
  1062.      is a suitable definition for this macro on machines where anything
  1063.      `CONSTANT_P' is valid.
  1064.  
  1065.